package cz.semjob.document.util;

import cz.semjob.document.annotation.RelationWordsPair;
import cz.semjob.document.annotation.metadata.AnnotationTypeFactory;

public class AnnotationUtil {

	public static boolean checkRelationPossibility(
			RelationWordsPair relationWordsPair, String type) {
		if (type.equals(AnnotationTypeFactory.taxonomicRelationType)) {
			if (relationWordsPair.getEntity1().equals(
					relationWordsPair.getEntity2())) {
				return true;
			} else {
				return false;
			}
		} else {
			return true;
		}
	}

}
